import Vue from 'vue'
import App from './app.vue'

import vueRouter from 'vue-router'
import createRouter from './config/router.js'

import Vuex from 'vuex'
import createStore from './store/store.js'

import './assets/styles/global.less'

Vue.use(vueRouter);
Vue.use(Vuex);

export default () =>{
    const router = createRouter();
    const store = createStore();

    const app = new Vue({
        router,
        store,
        render: h => h(App)
    })

    return { app,router,store }
}
